home *** CD-ROM | disk | FTP | other *** search
- /* -*-objc-*- */
-
- /*
- $Header$
- $Author: dglattin $
- $Date$
- $Log$
- */
-
- #include <assert.h>
- #include <stdio.h>
- #include <SubClass1.h>
-
-
- static BOOL flag = NO;
-
-
- @implementation SubClass1
-
-
- + initialize {
-
- printf( "If you see this message then SubClass1 received a"
- " +initialize method\n" );
- flag = YES;
-
- return self;
- }
-
-
- + newOther {
-
- assert (flag);
- self = [ self new ];
- return self;
- }
-
- - hokeyMethod {
-
-
- return self;
- }
-
-
- - print {
-
-
- printf( "Subclass1 print\n" );
-
- return self;
- }
-
-
- - print:( const char* )aPhrase {
-
-
- printf( "Subclass1 print:%s\n", aPhrase );
-
- return self;
- }
-
-
- + ( int )return12 { return 12; }
- - ( int )return15 { return 15; }
- - ( int )return24 { return 24; }
- - ( int )return33 { return 33; }
-
-
- @end